Skip to content

Conversation

@kayra1
Copy link
Contributor

@kayra1 kayra1 commented Sep 5, 2025

Description

This change introduces goose to Notary, which manages the database migrations. It also introduces some wrapper commands: notary migrate up, notary migrate down and notary migrate status. If a version number is given, up will migrate up to the version number and down will migrate down to the version number. If it wasn't given, down will go down one version, and up will go up to the latest version.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that validate the behaviour of the software
  • I validated that new and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@kayra1 kayra1 changed the title add migrations to DB feat(db): add database migration command Sep 5, 2025
@kayra1 kayra1 force-pushed the goose branch 9 times, most recently from 442f1fa to 90369be Compare September 10, 2025 22:18
@kayra1 kayra1 marked this pull request as ready for review September 11, 2025 06:13
@kayra1 kayra1 requested a review from a team as a code owner September 11, 2025 06:13
Copy link
Contributor

@saltiyazan saltiyazan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with Goose, I tried to do my best reviewing this. Great work except for a couple of minor questions.
Have you tested the schema locally?

@kayra1
Copy link
Contributor Author

kayra1 commented Sep 15, 2025

Have you tested the schema locally?

I did test it locally, and the rock test actually posts a certificate successfully so we know for a fact that the migration works.

@kayra1 kayra1 merged commit c273458 into main Sep 15, 2025
19 checks passed
@kayra1 kayra1 deleted the goose branch September 15, 2025 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants